package me.fanx.springcloud.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    private Logger log = LoggerFactory.getLogger(HelloController.class);

    @GetMapping("/hello")
    public String index(@RequestParam String name) {
        log.info("request /hello?name={}", name);
        return "hello " + name;
    }
}